package com.mm.scheme.exception;

import com.mm.common.domain.po.Result;

/**
 * @BelongsProject: 8.mindmap
 * @BelongsPackage: com.mm.ai.exception
 * @Author : 游在海里的鱼
 * @CreateTime : 2024-05-23  10:55
 * @Version : 1.0
 * @ClassName : TODO
 * @Description : TODO
 */
public class AiException extends Exception{
    protected Result errorResult;

    public Result getErrorResult() {
        return errorResult;
    }

    public AiException(Result result){
        super(result.getMessage());
        errorResult = result;
    }
    public AiException(String message) {
        super(message);
    }

    public AiException(String message, Throwable cause) {
        super(message, cause);
    }

    public AiException(Throwable cause) {
        super(cause);
    }
}
